package com.shoppingmall.bean;

public class ShopCartBean {

    /**
     * id : 2
     * scale : 198
     * time : 1531639150000
     * num : 4
     * aPrice : 52
     * userId : 6
     * img :
     * commId : 4
     * commName : 活氧有机水
     * serise :1
     */

    private String id;
    private String scale;
    private long time;
    private int num;
    private float aPrice;
    private float mPrice;
    private String userId;
    private String img;
    private String commId;
    private String commName;
    private boolean choosed;
    private int serise;
    private int boxNum;//每个系列的盒数

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public float getaPrice() {
        return aPrice;
    }

    public void setaPrice(float aPrice) {
        this.aPrice = aPrice;
    }

    public float getmPrice() {
        return mPrice;
    }

    public void setmPrice(float mPrice) {
        this.mPrice = mPrice;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getCommId() {
        return commId;
    }

    public void setCommId(String commId) {
        this.commId = commId;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public boolean isChoosed() {
        return choosed;
    }

    public void setChoosed(boolean choosed) {
        this.choosed = choosed;
    }

    public int getSerise() {
        return serise;
    }

    public void setSerise(int serise) {
        this.serise = serise;
    }

    //ps系列一箱是24盒 ut系列是48盒 格丽缇是36
    // 1-格丽缇 2-Utomorrow 3-Pslady
    public int getBoxNum() {
        if (serise == 1) boxNum = 36;
        if (serise == 2) boxNum = 48;
        if (serise == 3) boxNum = 24;
        return boxNum;
    }

}
